<style>
.text-error{color:red;}
</style>
<form class="form-horizontal" name="CtrlForm" role="form" novalidate="novalidate" ng-submit="submit()" ng-controller='PostEditCtrl' style="margin:0 auto;">
	<div class="form-group has-feedback">
	  <label for="title" class="col-md-3 control-label">文章标题</label>
	  <div class="col-md-6">
		<div class="input-group">
			<input type="text" class="form-control" id="title" name="title" placeholder="请输入文章标题" required ng-model='post.title' />
			<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-show="CtrlForm.title.$dirty && CtrlForm.title.$valid" style="margin-right:40px;"></span>
			<span class="input-group-addon" style="color:red;">必填</span>		
		</div>
	  </div>
	</div>
	
	<{/*
	<div class="form-group has-feedback">
	  <label for="cat_id" class="col-md-3 control-label">所属分类</label>
	  <div class="col-md-6">
	  
		<div class="input-group">
			<select class="form-control" id="cat_id" name="cat_id" ng-model='post.cat_id' required>
				<option value="">--选择分类--</option>
				<option ng-repeat="item in data" value="{{item.cat_id}}" ng-class="item.level|levelClass">{{'&nbsp;&nbsp;&nbsp;'|levelRepeat:item.level}}{{item.cat_name}}</option>
			</select>
			<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-show="CtrlForm.cat_id.$dirty && CtrlForm.cat_id.$valid" style="margin-right:70px;"></span>
			<span class="input-group-addon" style="color:red;">必填</span>		
		</div> <!-- /btn-group -->
	
	  </div>
	</div>	
	*/}>

	

	<div class="form-group has-feedback">
	  <label class="col-md-3 control-label">封面图<span class="text-error">*</span></label>
	  <div class="col-md-6">
		<a class="btn btn-success btn-lg" ng-href="" ng-click="hidePanel=false;loadCropperImage()" style="display:block;margin-bottom:10px;width:200px;" ng-show="hidePanel"><span>点击更换封面</span></a>
		<a class="btn btn-success btn-lg" ng-href="" ng-click="hidePanel=true" style="display:block;margin-bottom:10px;width:200px;" ng-hide="hidePanel"><span>使用原封面图</span></a>
		<img ng-src="__UPLOAD__/{{post.cover_path}}" style="cursor:pointer;max-height:100px;display:block;" ng-show="hidePanel" title="点击更换封面图" ng-click="hidePanel=false;loadCropperImage()" />		
	  </div>
	</div>
	<div class="form-group has-feedback">
		<div class="col-md-10 col-md-offset-1">
		<include file="Image:cut" />
		</div>
	</div>
	<{/*
	<div class="form-group has-feedback">
	  <label for="keywords" class="col-md-3 control-label">分类SEO关键词</label>
	  <div class="col-md-6">
		<input type="text" class="form-control" id="keywords" name="keywords" placeholder='多个关键词用英文逗号,分隔' ng-model='post.keywords'>
	  </div>
	</div>	
	*/}>

	
	<div class="form-group has-feedback">
	  <label for="description" class="col-md-3 control-label">文章摘要</label>
	  <div class="col-md-6">
		<textarea class="form-control" rows="3" id="description" name="description" ng-model='post.description'></textarea>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <div class="col-md-10 col-md-offset-1" style="height:auto;">
		<include file="Public:ueditor" />
	  </div>
	</div>

   <div class="form-group has-feedback">
      <div class="col-md-offset-2 col-md-6">			
        <button type="submit" class="btn btn-primary" ng-disabled="CtrlForm.$invalid">修改</button>
      </div>
   </div>
</form>